package com.lepu.app.main.bean;

import android.content.Context;

import com.core.lib.utils.main.UtilityBase;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.util.ArrayList;
import java.util.List;

public class BeanAreaProvince {
	public String provinceID;
	public String provinceName;
	public ArrayList<BeanAreaCity> cityList;

	public static ArrayList<BeanAreaProvince> getProvinceList(Context context) {
		ArrayList<BeanAreaProvince> provinceList = new ArrayList<BeanAreaProvince>();
		try {

			String data = UtilityBase.getFromAssets(context, "area.txt");
			Gson gson = new Gson();
			provinceList = gson.fromJson(data,
					new TypeToken<List<BeanAreaProvince>>() {
					}.getType());
		} catch (Exception e) {
		}

		return provinceList;
	}
}
